
#ifndef BODYBOARD_H
#define BODYBOARD_H

#include <BNode>
#include <BButton>
#include <BComboBox>
#include <BRealSpinBox>
#include <BCheckBox>
#include <BLineEdit>

using namespace BWE;

class BodyBoard : public BGroupBox
{
	BOBJECT(BodyBoard);
public:
	BodyBoard(BWidget* parent = 0);
	~BodyBoard();

protected:
	void slotAssetChanged(BObject* object, const BValue& value);

	void slotPositionEditFinished(BObject* object, const BValue& value);
	void slotRotateEditFinished(BObject* object, const BValue& value);

	void slotMassEditFinished(BObject* object, const BValue& value);
	void slotFrictionEditFinished(BObject* object, const BValue& value);
	void slotRestitutionEditFinished(BObject* object, const BValue& value);
	void slotForceEditFinished(BObject* object, const BValue& value);

private:
	BLineEdit*				_positionEdit;
	BLineEdit*				_rotateEdit;

	BRealSpinBox*			_massSpinBox;
	BRealSpinBox*			_frictionSpinBox;
	BRealSpinBox*			_restitutionSpinBox;
	BRealSpinBox*			_forceXSpinBox;
	BRealSpinBox*			_forceYSpinBox;
	BRealSpinBox*			_forceZSpinBox;

};

#endif
